package com.atguigu.guli.service.trade.feign;

import com.atguigu.guli.service.base.dto.MemberDto;
import com.atguigu.guli.service.trade.feign.fallback.UcenterMemberFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zero
 * @desc
 * @create 2020/5/30
 */
@Service
@FeignClient(value = "service-ucenter", fallback = UcenterMemberFeignFallBack.class)
public interface UcenterMemberFeign {

    /**
     * 远程调用
     * @param memberId 会员id
     * @return 返回查询结果
     */
    @GetMapping(value = "/api/ucenter/member/inner/get-member-dto/{memberId}")
    MemberDto getMemberDtoByMemberId(@PathVariable(value = "memberId") String memberId);

}
